package com.ruoyi.association.domain;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 协会会员关联对象 sys_association_member
 * 
 * @author ruoyi
 * @date 2025-01-27
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_association_member")
public class SysAssociationMember extends BaseEntity implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 协会ID */
    @Excel(name = "协会ID")
    private Long associationId;

    /** 会员ID */
    @Excel(name = "会员ID")
    private Long membersId;

    /** 在协会中的职务 */
    @Excel(name = "在协会中的职务")
    private String position;

    /** 加入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "加入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date joinTime;

    /** 状态（0正常 1退出） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=退出")
    private String status;

    /** 协会名称 */
    private String associationName;

    /** 会员姓名 */
    private String membersName;

    /** 会员工号 */
    private Long membersNum;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setAssociationId(Long associationId) 
    {
        this.associationId = associationId;
    }

    public Long getAssociationId() 
    {
        return associationId;
    }

    public void setMembersId(Long membersId) 
    {
        this.membersId = membersId;
    }

    public Long getMembersId() 
    {
        return membersId;
    }

    public void setPosition(String position) 
    {
        this.position = position;
    }

    public String getPosition() 
    {
        return position;
    }

    public void setJoinTime(Date joinTime) 
    {
        this.joinTime = joinTime;
    }

    public Date getJoinTime() 
    {
        return joinTime;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public String getAssociationName() 
    {
        return associationName;
    }

    public void setAssociationName(String associationName) 
    {
        this.associationName = associationName;
    }

    public String getMembersName() 
    {
        return membersName;
    }

    public void setMembersName(String membersName) 
    {
        this.membersName = membersName;
    }

    public Long getMembersNum() 
    {
        return membersNum;
    }

    public void setMembersNum(Long membersNum) 
    {
        this.membersNum = membersNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("associationId", getAssociationId())
            .append("membersId", getMembersId())
            .append("position", getPosition())
            .append("joinTime", getJoinTime())
            .append("status", getStatus())
            .toString();
    }
}
